import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import Elemnts from './components/index';
import Clickoutside from '@/views/clickoutside';
Vue.use(Clickoutside)
Vue.use(Elemnts)
Vue.use(ElementUI, {size: 'small', zIndex: 3000});
Vue.config.productionTip = false
const MixinsSlot = {
  data(){
    return {
      allBalance: "99.98",
      currency: "欧元",
    }
  },
  mounted() {
    console.log('通过mixins 生命周期 调用方法 mounted ')
    this.currency = this.currency + '-duble-'
  },
  methods:{
    sayHello(){
      console.log('点击下一步按钮 通过mixins 在不改变原代码结构情况下 加入代码方法 sayHello')
    }
  }
}
// Vue.mixin(MixinsSlot)
new Vue({
  // mixins: [MixinsSlot], // 或者使用这种方式，也能达到全局混入
  router,
  store,
  render: h => h(App)
}).$mount('#app')
